package com.mall.seckil.feign;

import com.mall.common.dto.SkuInfoDTO;
import com.mall.common.utils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 谢君臣
 * @Date: 2022/9/18-18:37
 * @version: 1.0
 * @function:
 */

@FeignClient("productServer")
public interface ProductFeignClient {
    @GetMapping("product/skuinfo/{id}")
    @ApiOperation("信息")
    Result<SkuInfoDTO> get(@PathVariable("id") Long id);
}
